<template>
    <div>
        我是第二个页面
        <router-link to="/rtem3">去第三个页面</router-link>
        <pic></pic>
       <!--  <demo></demo> -->
    </div>
</template>
<script>
// import Mydemo from '@/components/mydemo1';//引用模板
// 组件模块
import pic from '@/components/picker/demo-dateTime-picker.vue';
import demo from '@/components/picker/demo-data-picker.vue';
export default {
    name: 'temp2',
    components: {pic, demo},

    // 组件创建勾子只执行一次
    created () {
        console.log('temp2重新加载了');
    }
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<!-- <style scoped lang="less"> -->
<style scoped>
</style>
